import { VNode } from "vue";
import { ButtonTheme } from "../../utils/enums";
import { DialogProps } from "../dialog/dialog.type";
interface ButtonOptions {
  okHandler?: Function;
  okText?: string;
  okTheme?: ButtonTheme;
  okClose?: boolean;
  cancelHandler?: Function;
  cancelText?: string;
  cancelTheme?: ButtonTheme;
  cancelClose?: boolean;
}
// interface DialogOptions {
//   modelValue?: boolean;
//   content?: string | VNode;
//   title?: string;
//   size?: string;
//   static?: boolean;
//   centered?: boolean;
//   bodyIcon?: string;
//   closable?: boolean;
// }
export type MessageBoxOptions = DialogProps &
  ButtonOptions & {
    type?: "warning" | "info" | "danger" | "success";
    inputReg?: RegExp;
    invalidMes?: string;
  };
export type OptionsResult = {
  dialog: DialogProps;
  button: ButtonOptions;
};
